package it.polimi.entities;

import java.io.Serializable;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class Package  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6471118757964867243L;

	@Id
	@Column(length = 36)
	private String id = UUID.randomUUID().toString();
	
	@ManyToOne
	private Product product;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Product getProduct() {
	    return product;
	}

	public void setProduct(Product param) {
	    this.product = param;
	}
}